<?php

class VerifyImageController extends CController
{
    public $defaultAction='show';    

    public function actionShow()
    {
        $image = VerifyImage::create($code);
        Yii::app()->session->add(VerifyImage::getSessionName($_GET['name']), $code);

        Header("Content-type: image/png");        
        ImagePNG($image);
        VerifyImage::delete($image);
    }
}

?>